package com.tyj.movie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *      电影演员
 * </p>
 *
 * @author tyj
 * @since 2021-06-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class MovieActor implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 演员名
     */
    private String name;

    /**
     * 演员照片
     */
    private String pictureUrl;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 饰演
     */
    @TableField(exist = false)
    private String portray;

}
